package com.xyhy.core.file.oss;

/**
 * OSS 常量类
 */
public class OssConstants {

  public static class CALLBACK_URL {
    /**
     * 阿里云回调地址
     */
    public static final String ALIYUN = "callback/aliyun";
  }

  public static class CALLBACK_BODY {
    public static final String FIELD_FILE_ID = "x:fileId";

    //    public static final String COMMON = "{\\\"mimeType\\\":${mimeType},\\\"size\\\":${size},\\\"imageInfo\\\":${imageInfo},\\\"fileId\\\":${x:fileId}}";
    public static final String COMMON = "{\"mimeType\":${mimeType},\"size\":${size},\"imageInfo\":${imageInfo},\"fileId\":${x:fileId}}";
    public static final String COMMON_VAR_FILE = "{\"mimeType\":${mimeType},\"size\":${size},\"imageInfo\":${imageInfo},\"fileId\":\"%d\"}";
    public static final String COMMON_VAR_FILE_DIRECT = "{\\\"mimeType\\\":${mimeType},\\\"size\\\":${size},\\\"imageInfo\\\":${imageInfo},\\\"fileId\\\":\\\"%d\\\"}";

  }

  public static class SUFFIX {
    public static final String JPG = "jpg";

    public static final String MP4 = "mp4";
  }

  public static class FOLDER {
    public static final String FRAMES = "frames";
  }


}
